package org.zhxy.entity.system;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@Getter
@Setter
@TableName("pe_role")
public class Role implements Serializable {

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    private String name; //角色名

    private String description; //说明

    private transient String permissionIds;  //在页面新增修改角色时,传递过来的权限ids字符串,用于绑定关系

    private transient Set<User> users = new HashSet<User>(0);//角色与用户   多对多

    private transient Set<Permission> permissions = new HashSet<Permission>(0);//角色与模块  多对多
}